package com.haixiaoke.saas.workOrder.service;

import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.workOrder.domain.WorkOrder;
import com.haixiaoke.saas.workOrder.domain.WorkOrderRecord;

import java.util.List;


/**
 * 工单跟进记录Service接口
 *
 * @author qixi
 * @date 2024-09-03
 */
public interface IWorkOrderRecordService {
    /**
     * 查询工单跟进记录
     *
     * @param recordId 工单跟进记录主键
     * @return 工单跟进记录
     */
    WorkOrderRecord selectWorkOrderRecordByRecordId(Long recordId);

    /**
     * 查询工单跟进记录列表
     *
     * @param workOrderRecord 工单跟进记录
     * @return 工单跟进记录集合
     */
    List<WorkOrderRecord> selectWorkOrderRecordList(WorkOrderRecord workOrderRecord);

    /**
     * 新增工单跟进记录
     *
     * @param workOrderRecord 工单跟进记录
     * @return 结果
     */
    int insertWorkOrderRecord(WorkOrderRecord workOrderRecord);

    /**
     * 修改工单跟进记录
     *
     * @param workOrderRecord 工单跟进记录
     * @return 结果
     */
    int updateWorkOrderRecord(WorkOrderRecord workOrderRecord);

    /**
     * 批量删除工单跟进记录
     *
     * @param recordIds 需要删除的工单跟进记录主键集合
     * @return 结果
     */
     int deleteWorkOrderRecordByRecordIds(Long[] recordIds);

    /**
     * 删除工单跟进记录信息
     *
     * @param recordId 工单跟进记录主键
     * @return 结果
     */
     int deleteWorkOrderRecordByRecordId(Long recordId);

    /**
     * 批量新增工单跟进记录
     * @param workOrderRecordList   工单跟进记录集合
     * @return
     */
    int insertBatchWorkOrderRecord(List<WorkOrderRecord> workOrderRecordList);

    List<WorkOrderRecord> selectWorkOrderRecordByWorkOrderId(String workOrderId);

    /**
     * 根据工单id查询工单跟进记录
     * @param recordType
     * @param userDisplayType
     * @return
     */
    WorkOrderRecord selectWorkOrderRecordByRecordTypeAndUserDisplayType(String workOrderId,String recordType, String userDisplayType);

    List<WorkOrderRecord> selectWorkOrderRecordByRecordType(String workOrderId,String recordType);

}
